package org.sagitta.httprpc.json.adaptor;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.sagitta.httprpc.AdaptorFactory;
import org.sagitta.httprpc.RequestUnmarshaller;
import org.sagitta.httprpc.ResponseMashaller;

public class JSONAdaptorFactory extends AdaptorFactory {
	private static final Log log = LogFactory.getLog(JSONAdaptorFactory.class);
	@Override
	public ResponseMashaller createMashaller() throws Exception {
		return new JSONResponseMashaller();
	}

	@Override
	public RequestUnmarshaller createUnmashaller() throws Exception {
		return new JSONRequestUnmashaller();
	}

	@Override
	public void initializeFactory() throws Exception {
		log.info("Use json adaptor to mashaller/unmashaller the message.");
	}

}
